<template>
  <div class="import">
    <el-card>
      <h4>员工导入</h4>
      <el-alert
       class="myalert"
        type="warning"
        title="每次导入仅可添加1000名员工，姓名、手机、入职时间、聘用形式为必填项"
        show-icon
      >
      </el-alert>
      <myexcel :beforeUpload="beforeUpload" :onSuccess="onSuccess"></myexcel>
    </el-card>
  </div>
</template>

<script>
export default {
  methods: {
    // 上传之前触发
    beforeUpload (file) {},
    // 上传成功触发
    onSuccess ({ header, results }) {}
  }
}
</script>

<style lang="scss">
.import {
  margin: 20px;
  h4 {
    text-align: center;
  }
  .myalert {
    margin-bottom: 40px;
  }
}
</style>
